from utils.send_method import   SendMethod

class Event:

    def __init__(self):
        self.url='http://127.0.0.1:8000'

    def add_event(self,data):
        url=self.url+'/api/add_event/'
        method='post'
        return  SendMethod.send_method(method,url=url,data=data)

    def get_event(self,params):
        url=self.url+'/api/get_event_list/'
        method='get'
        return  SendMethod.send_method(method,url,params)





